﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TracNghiemTinHocDaiCuong.DAO;
using TracNghiemTinHocDaiCuong.ThucThe;

namespace TracNghiemTinHocDaiCuong.BIZ
{
    public class CauHoiBIZ
    {
        public static IList<CauHoi> TimKiem(string noiDung, string range)
        {
            return CauHoiDAO.TimKiem(noiDung, range);
        }

        public static CauHoi TimKiemTheoId(int idCauHoi)
        {
            return CauHoiDAO.TimKiemTheoId(idCauHoi);
        }

        public static IList<CauHoi> LayDanhSach()
        {
            return CauHoiDAO.LayDanhSach();
        }

        public static bool Them(CauHoi CauHoi)
        {
            return CauHoiDAO.Them(CauHoi);
        }

        public static bool Sua(CauHoi CauHoi)
        {
            return CauHoiDAO.Sua(CauHoi);
        }

        public static bool Xoa(int idCauHoi)
        {
            return CauHoiDAO.Xoa(idCauHoi);
        }
    }
}